<template>
  <div>
    <a-radio-group :options="plainOptions" v-model:value="value1" />
    <br />
    <a-radio-group v-model:value="value2" :options="options" />
    <br />
    <a-radio-group
      v-model:value="value3"
      :options="optionsWithDisabled"
      disabled
    />
  </div>
</template>
<script>
import { defineComponent, ref } from "vue";
const plainOptions = ["Apple", "Pear", "Orange"];
const options = [
  {
    label: "Apple",
    value: "Apple",
  },
  {
    label: "Pear",
    value: "Pear",
  },
  {
    label: "Orange",
    value: "Orange",
  },
];
const optionsWithDisabled = [
  {
    label: "Apple",
    value: "Apple",
  },
  {
    label: "Pear",
    value: "Pear",
  },
  {
    label: "Orange",
    value: "Orange",
    disabled: false,
  },
];
export default defineComponent({
  data() {
    const value1 = ref("Apple");
    const value2 = ref("Apple");
    const value3 = ref("Apple");
    return {
      plainOptions,
      options,
      optionsWithDisabled,
      value1,
      value2,
      value3,
    };
  },
});
</script>
